#include "sharedresources.hpp"

int main()
{
    int shmid=GetShmid();

    char* shmaddr=(char*)shmat(shmid,nullptr,0);

    int fd=open(FIFO_FILE,O_WRONLY);
    while(true)
    {
        cout<<"Enter:";
        // fgets(shmaddr,MEMSIZE,stdin);
        gets(shmaddr);

        write(fd,"p",1);
    }

    shmdt(shmaddr);

    return 0;
}